package cn.iocoder.devlop.module.annual.report.websiteinfo.convert;

import cn.iocoder.devlop.framework.common.pojo.PageResult;
import cn.iocoder.devlop.module.annual.report.websiteinfo.controller.vo.*;
import cn.iocoder.devlop.module.annual.report.websiteinfo.dal.dataobject.WebsiteinfoDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 企业年报网站或网店信息 Convert
 *
 * @author 孙浩
 */
@Mapper
public interface WebsiteinfoConvert {

    WebsiteinfoConvert INSTANCE = Mappers.getMapper(WebsiteinfoConvert.class);

    WebsiteinfoDO convert(WebsiteinfoBaseVO bean);

    WebsiteinfoDO convert(WebsiteinfoUpdateReqVO bean);

    WebsiteinfoRespVO convert(WebsiteinfoDO bean);

    List<WebsiteinfoRespVO> convertList(List<WebsiteinfoDO> list);

    PageResult<WebsiteinfoRespVO> convertPage(PageResult<WebsiteinfoDO> page);

    List<WebsiteinfoExcelVO> convertList02(List<WebsiteinfoDO> list);

    List<WebsiteinfoCreateReqVO> convertList3(List<WebsiteinfoDO> oldWebsiteinfoList);
}
